package org.iteam.bank.signed.service;

import org.iteam.bank.signed.model.P2PProject;
import org.iteam.db.SimpleDbRunner;
import org.iteam.db.exception.DbException;

public class P2PProjectService {

	private P2PProjectService() {
		super();
	}

	public static P2PProjectService getInstance() {
		return Subclass.service;
	}

	private static final class Subclass {
		public static final P2PProjectService service = new P2PProjectService();

	}

	public P2PProject show(String id) throws DbException {
		String sql = "select * from p2p_project where id = ? ";
		return new SimpleDbRunner().findBeanOne(P2PProject.class, sql, id);
	}
	public P2PProject show(SimpleDbRunner dbRunner,String id) throws DbException {
		String sql = "select * from p2p_project where id = ? ";
		return dbRunner.findBeanOne(P2PProject.class, sql, id);
	}
}
